package com.wgh.search.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 商品搜索文档实体类
 * 用于Elasticsearch搜索
 */
@Data
public class ProductDoc implements Serializable {
    private static final long serialVersionUID = 1L;

    // 基本信息
    private Long id;
    private String name;
    private String description;
    private Double price;
    private Double originalPrice;
    private Integer stock;
    private Integer sales;
    private String mainImage;
    private Integer status;

    // 日期信息
    private Date createTime;
    private Date updateTime;

    // 分类和品牌信息
    private Long categoryId;
    private String categoryName;
    private Long brandId;
    private String brandName;

    // SKU信息
    private List<SkuDoc> skus;

    // 商品属性
    private Map<String, String> attributes;

    // 特殊标记
    private Boolean isHot;
    private Boolean isNew;
}